package com.nami.store.api.service;

import com.nami.store.api.request.message.GrpMsgRequest;
import com.nami.store.api.request.message.HisMsgQryRequest;
import com.nami.store.api.request.message.PrivateMsgReq;
import com.nami.store.api.response.message.MessageDTO;

import java.util.List;

/**
 * 描述：提供消息接口
 *
 * @Author: lbc
 * @Date: 2023-07-24 10:35
 * @email: 594599620@qq.com
 * @Description: keep coding
 */
public interface RemoteMessageService {

    /**
     * c2c
     *
     * @param request
     * @return
     */
    boolean savePrivateMsg(PrivateMsgReq request);

    /**
     * c2g
     *
     * @param request
     * @return
     */
    boolean saveGrpMsg(GrpMsgRequest request);


    List<MessageDTO> getPrivateHisMsgs(HisMsgQryRequest request);

    List<MessageDTO> getGrpHisMsgs(HisMsgQryRequest request);
}
